package event
{
	import flash.events.Event;
	
//	import mx.events.ListEvent;
	
	public class LocationEvent extends Event
	{
		public static const NAME:String = "LocationEvent/";
		public static const SELECTED_ROW:String = NAME + "onSelectedRow";
		public static const START:String = NAME + "start";
		public static const UPDATE_CURRENT_LOC:String = NAME + "updateCurrentLoc";
		
		public var selectedRow:Object;
		public var selectedIndex:int;
		public var data:Object;
		
		public function LocationEvent(type:String, data:Object, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.data = data;
			if ( this.data != null)
			{
//				selectedRow = ListEvent(this.data).currentTarget.selectedItem;
//				selectedIndex = ListEvent(this.data).rowIndex;
			}
		}
		
		override public function clone():Event
		{
			return new LocationEvent(type,data,bubbles,cancelable);
		}
	}
}